package com.example.jikeyoujikeyou.office_sz.view.base;

import android.support.v4.app.Fragment;

/**
 * Created by sziit on 2017/12/28.
 */

public class BaseFragment extends Fragment {

    OnFragmentSenderMessage onFragmentMessage;

    public interface OnFragmentSenderMessage {
        <T> void message(BaseFragment fragment, T t);
    }


    public <T> void message(T t) {
        onFragmentMessage.message(this, t);
    }


    public BaseFragment() {
    }

    public BaseFragment setOnFragmentMessage(OnFragmentSenderMessage onFragmentMessage) {
        this.onFragmentMessage = onFragmentMessage;
        return this;
    }
}
